package org.zsqx.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cDao.annotation.FieldTypeAnnotation;

/**
 * Area entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "AREA", schema = "dbo", catalog = "BN4PS9Z220010012")
public class Area implements java.io.Serializable {

	// Fields
	@FieldTypeAnnotation(colum="num",fieldType=Integer.class,isKey=true)
	private Integer ANum;
	private String ADes;
	private String AName;
	private Integer ATown;

	// Constructors

	/** default constructor */
	public Area() {
	}

	/** minimal constructor */
	public Area(Integer ANum, String AName) {
		this.ANum = ANum;
		this.AName = AName;
	}

	/** full constructor */
	public Area(Integer ANum, String ADes, String AName, Integer ATown) {
		this.ANum = ANum;
		this.ADes = ADes;
		this.AName = AName;
		this.ATown = ATown;
	}

	// Property accessors
	@Id
	@Column(name = "A_NUM", unique = true, nullable = false)
	public Integer getANum() {
		return this.ANum;
	}

	public void setANum(Integer ANum) {
		this.ANum = ANum;
	}

	@Column(name = "A_DES", length = 50)
	public String getADes() {
		return this.ADes;
	}

	public void setADes(String ADes) {
		this.ADes = ADes;
	}

	@Column(name = "A_NAME", nullable = false, length = 50)
	public String getAName() {
		return this.AName;
	}

	public void setAName(String AName) {
		this.AName = AName;
	}

	@Column(name = "A_TOWN")
	public Integer getATown() {
		return this.ATown;
	}

	public void setATown(Integer ATown) {
		this.ATown = ATown;
	}

}